package com.dongnam.quanly.common.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;

import com.dongnam.quanly.common.model.enumtype.LoaiTaiKhoanNganHang;

@Entity
@Table(name = "TaiKhoanNganHang")
public class TaiKhoanNganHang extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "SoTaiKhoan", length = 100)
	private String soTaiKhoan;

	@Column(name = "TenNganHang")
	private String tenNganHang;

	@Column(name = "ChiNhanh", length = 200)
	private String chiNhanh;

	@Column(name = "DiaChiNoiMo", length = 200)
	private String diaChiNoiMo;

	@Column(name = "GhiChu")
	private String ghiChu;

	@Column(name = "LoaiTaiKhoanNganHang")
	@Enumerated(EnumType.STRING)
	private LoaiTaiKhoanNganHang loaiTaiKhoanNganHang;

	@Column(name = "MaDoiTac")
	private String doiTac;

	public TaiKhoanNganHang() {
		super();
		// TODO Auto-generated constructor stub
	}

	public void filltknganhang(TaiKhoanNganHang tkng) {

		this.soTaiKhoan = tkng.soTaiKhoan;
		this.tenNganHang = tkng.tenNganHang;
		this.chiNhanh = tkng.chiNhanh;
		this.diaChiNoiMo = tkng.diaChiNoiMo;
		this.ghiChu = tkng.ghiChu;
		this.loaiTaiKhoanNganHang = tkng.loaiTaiKhoanNganHang;
		this.doiTac = tkng.doiTac;
	}

	public String getSoTaiKhoan() {
		return soTaiKhoan;
	}

	public void setSoTaiKhoan(String soTaiKhoan) {
		this.soTaiKhoan = soTaiKhoan;
	}

	public String getChiNhanh() {
		return chiNhanh;
	}

	public void setChiNhanh(String chiNhanh) {
		this.chiNhanh = chiNhanh;
	}

	public String getDiaChiNoiMo() {
		return diaChiNoiMo;
	}

	public void setDiaChiNoiMo(String diaChiNoiMo) {
		this.diaChiNoiMo = diaChiNoiMo;
	}

	public String getGhiChu() {
		return ghiChu;
	}

	public void setGhiChu(String ghiChu) {
		this.ghiChu = ghiChu;
	}

	public LoaiTaiKhoanNganHang getLoaiTaiKhoanNganHang() {
		return loaiTaiKhoanNganHang;
	}

	public void setLoaiTaiKhoanNganHang(LoaiTaiKhoanNganHang loaiTaiKhoanNganHang) {
		this.loaiTaiKhoanNganHang = loaiTaiKhoanNganHang;
	}

	public String getTenNganHang() {
		return tenNganHang;
	}

	public void setTenNganHang(String tenNganHang) {
		this.tenNganHang = tenNganHang;
	}

	public String getDoiTac() {
		return doiTac;
	}

	public void setDoiTac(String doiTac) {
		this.doiTac = doiTac;
	}

}
